package exttable.testselector;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: Aug 12, 2010
 * Time: 12:01:16 PM
 * To change this template use File | Settings | File Templates.
 */
public class VolunteerSelectorMVC {
    VolunteerSelectorController controller;
    VolunteerSelectorModel model;

    public VolunteerSelectorMVC() {
        try {
            model = new VolunteerSelectorModel();
            VolunteerSelectorView view = new VolunteerSelectorView(model);
            controller = new VolunteerSelectorController(view, model);
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }

    public VolunteerSelectorController getController() {
        return controller;
    }

    public VolunteerSelectorModel getModel() {
        return model;
    }

    private static VolunteerSelectorMVC vspInstance = new VolunteerSelectorMVC();

    public static VolunteerSelectorMVC getInstance() {
        return vspInstance;
    }
}
